/**
 * Copyright (c) 2023, iDearHanYu Co., Ltd.
 *
 * SPDX-License-Identifier: 
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-09-08     chao         first version
 */

#include <lvgl.h>
#include "volumio_music.h"


static void _player_button_event_cb(lv_event_t * e)
{
    lv_point_t point;

    lv_indev_get_point(lv_event_get_indev(e), &point);
    LV_LOG_USER("point %d,%d", point.x, point.y);
}

void lv_volumio_test(void)
{
    lv_obj_t *obj = lv_obj_create(lv_scr_act());
    lv_obj_set_size(obj, lv_pct(100), lv_pct(100));

    lv_obj_add_event_cb(obj, _player_button_event_cb, LV_EVENT_CLICKED, NULL);
    lv_obj_add_event_cb(obj, _player_button_event_cb, LV_EVENT_RELEASED, NULL);
    lv_obj_add_event_cb(obj, _player_button_event_cb, LV_EVENT_LONG_PRESSED, NULL);
    lv_obj_add_event_cb(obj, _player_button_event_cb, LV_EVENT_LONG_PRESSED_REPEAT, NULL);

}


